package com.huitian.net

import com.google.inject.Singleton
import com.typesafe.config.{Config, ConfigFactory}

/**
 * MySQL 配置信息
 */
@Singleton
class MysqlConfiguration extends Serializable {
  private val config:             Config = ConfigFactory.load()
  lazy    val mysqlConf:          Config = config.getConfig("mysql")
  lazy    val mysqlJdbcUrl:       String = mysqlConf.getString("jdbcUrl")
  lazy    val mysqlJdbcDriver:    String = mysqlConf.getString("jdbcDriver")
  lazy    val dataSourceUser:     String = mysqlConf.getString("dataSource.user")
  lazy    val dataSourcePassword: String = mysqlConf.getString("dataSource.password")
}
